package com.blueocean_health.care.management.domain.dto;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.blueocean_health.care.management.em.OrderTimeTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @Author lcx
 * @Date 2017/8/21 10:54
 */


public class OrderDetailDto {
	 private String id;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date baseBeginTime;
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date baseEndTime;
	private String BaseDay;
    private String outworker;
    private String outworkerName;
    
   

	public Date getBaseBeginTime() {
		return baseBeginTime;
	}

	public void setBaseBeginTime(Date baseBeginTime) {
		this.baseBeginTime = baseBeginTime;
	}

	public Date getBaseEndTime() {
		return baseEndTime;
	}

	public void setBaseEndTime(Date baseEndTime) {
		this.baseEndTime = baseEndTime;
	}

	public String getBaseDay() {
		return BaseDay;
	}

	public void setBaseDay(String baseDay) {
		BaseDay = baseDay;
	}

	public String getOutworkerName() {
		return outworkerName;
	}

	public void setOutworkerName(String outworkerName) {
		this.outworkerName = outworkerName;
	}

	private String remark;
    private Boolean isRenewal;
    private Integer renewalAmount;
    private Integer renewalActualAmount;
    private String receiptNumber;
    private ChargeInfoDto chargeInfo;
    private SickRoomInfoDto sickRoomInfo;
    private WorkerInfoDto workerInfo;
    private String serviceRefundFlag;
    private String timeType; //订单小时制 1：24小时制  2:12小时制
private String timeTypeName;//时间类型名字
	
    public String getTimeTypeName() {
    	
    	
		return  getTimeType()==null||"".equals(getTimeType())?null:OrderTimeTypeEnum.valueOf("_"+getTimeType()).getVal();
	}

	public void setTimeTypeName(String timeTypeName) {
		this.timeTypeName = timeTypeName;
	}


	public String getTimeType() {
		return timeType;
	}

	public void setTimeType(String timeType) {
		this.timeType = timeType;
	}

	public String getServiceRefundFlag() {
		return serviceRefundFlag;
	}

	public void setServiceRefundFlag(String serviceRefundFlag) {
		this.serviceRefundFlag = serviceRefundFlag;
	}
    
     
    public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	 
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	

	public String getOutworker() {
		return outworker;
	}

	public void setOutworker(String outworker) {
		this.outworker = outworker;
	}

	public Boolean getIsRenewal() {
		return isRenewal;
	}

	public void setIsRenewal(Boolean isRenewal) {
		this.isRenewal = isRenewal;
	}

	public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getRenewal() {
        return isRenewal;
    }

    public void setRenewal(Boolean renewal) {
        isRenewal = renewal;
    }

    public Integer getRenewalAmount() {
        return renewalAmount;
    }

    public void setRenewalAmount(Integer renewalAmount) {
        this.renewalAmount = renewalAmount;
    }

    public Integer getRenewalActualAmount() {
        return renewalActualAmount;
    }

    public void setRenewalActualAmount(Integer renewalActualAmount) {
        this.renewalActualAmount = renewalActualAmount;
    }

    public String getReceiptNumber() {
        return receiptNumber;
    }

    public void setReceiptNumber(String receiptNumber) {
        this.receiptNumber = receiptNumber;
    }

    public ChargeInfoDto getChargeInfo() {
        return chargeInfo;
    }

    public void setChargeInfo(ChargeInfoDto chargeInfo) {
        this.chargeInfo = chargeInfo;
    }

    public SickRoomInfoDto getSickRoomInfo() {
        return sickRoomInfo;
    }

    public void setSickRoomInfo(SickRoomInfoDto sickRoomInfo) {
        this.sickRoomInfo = sickRoomInfo;
    }

    public WorkerInfoDto getWorkerInfo() {
        return workerInfo;
    }

    public void setWorkerInfo(WorkerInfoDto workerInfo) {
        this.workerInfo = workerInfo;
    }
}
